package com.demo.resourcecode.c6;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextDemo {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("propertySupport.xml");
		User user = context.getBean(User.class);
		System.out.println(user.getDate());
		System.out.println(user.getApplicationContext());
	}

}
